package com.atguigu.eduservice.client.impl;

import com.atguigu.commonutils.R;
import com.atguigu.eduservice.client.UserClient;
import com.atguigu.eduservice.entity.UcenterMember;
import org.springframework.stereotype.Component;

/**
 * @author alan
 */
@Component
public class UserClientImpl implements UserClient {

    private R result() {
        return R.error("暂时无法提供服务,请稍后重试");
    }

    @Override
    public R register(UcenterMember ucenterMember) {
        return result();
    }

    @Override
    public R login(UcenterMember ucenterMember) {
        return result();
    }

    @Override
    public R logout() {
        return result();
    }

    @Override
    public R getInfo() {
        return result();
    }

    @Override
    public R updateInfo(UcenterMember ucenterMember) {
        return result();
    }

    @Override
    public R loginByPhone(String phone, String code) {
        return result();
    }

    @Override
    public String getCode() {
        return "暂时无法提供服务,请稍后重试";
    }
}
